package edu.xidian.onlinedocument.views.elder;

import edu.xidian.onlinedocument.entity.UserTokenData;

import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
public class UserTokenMapper {
    @NotBlank
    @Pattern(regexp = "^[0-9a-bA-B]+$")
    private String userToken;

    public UserTokenMapper(UserTokenData token){
        this.userToken = token.getUserToken();
    }
}
